package com.xdb.sqlparser.dialect.mysql.ast.statement;

import com.xdb.sqlparser.ast.SQLExpr;
import com.xdb.sqlparser.dialect.mysql.ast.statement.MySqlSelectQueryBlock.Limit;
import com.xdb.sqlparser.dialect.mysql.visitor.MySqlASTVisitor;

public class MySqlShowRelayLogEventsStatement extends MySqlStatementImpl implements MySqlShowStatement {

	private SQLExpr logName;
	private SQLExpr from;
	private Limit limit;

	public SQLExpr getLogName() {
		return logName;
	}

	public void setLogName(SQLExpr logName) {
		this.logName = logName;
	}

	public SQLExpr getFrom() {
		return from;
	}

	public void setFrom(SQLExpr from) {
		this.from = from;
	}

	public Limit getLimit() {
		return limit;
	}

	public void setLimit(Limit limit) {
		this.limit = limit;
	}

	public void accept0(MySqlASTVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, logName);
			acceptChild(visitor, from);
			acceptChild(visitor, limit);
		}
		visitor.endVisit(this);
	}
}
